from selenium import webdriver
from selenium.webdriver.common.by import By
dr =webdriver.Firefox()
dr.get('http://stu000337/dbshop/public/')
def zhuce(username,password):
    dr.find_element(By.LINK_TEXT,'注册').click()
    dr.find_element(By.ID,'userName').send_keys(username)
    dr.find_element(By.ID,'userPassword').send_keys(password)
    dr.find_element(By.ID,'userComPassword').send_keys(password)
    dr.find_element(By.ID,'userEmail').send_keys(username+'@icloud.com')
    dr.find_element(By.ID,'agreement').click()
    dr.find_element(By.CSS_SELECTOR,'button[class="btn btn-primary"]').click()
    dr.find_element(By.LINK_TEXT,'退出').click()

zhuce('arseneee',12345678)
zhuce('raull',12345678)
zhuce('arsenese',12345678)
